﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.master"
    AutoEventWireup="true" Inherits="Project_Schedule_List" Codebehind="List.aspx.cs" %>

<%@ Register src="../../Common/Controls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1,.style2,.style3,.style4
        {
	         height:25px;
        }
        .style1
        {
	        width:100px; text-align:right; padding-right:20px;
        }  
        .style2
        {
           width:200px;
        }  
        .style3
        {
        	width:100px; text-align:right;
        }
        .style4
        {
            height:30px;
        }
        .style4 a
        {
            margin-left:10px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="margin:5px;">
        <table style="width:100%">
            
            <asp:ListView ID="lv" runat="server" onitemcreated="lv_ItemCreated" 
                onitemdatabound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="itemPlaceholder" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="trTaskName" runat="server">
                        <td class="style1">任务名称：</td>
                        <td class="style2"><%#Eval("TaskName") %></td>
                        <td class="style3"></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td class="style1">实际工作量：</td>
                        <td class="style2"><span style="font-weight:bold;"><%#Eval("Workload") %>个工作日</span></td>
                        <td class="style3">完成百分比：</td>
                        <td class="style4"><span style="font-weight:bold"><%#Eval("Percent")%>%</span></td>
                    </tr>
                    <tr>
                        <td class="style1">进展描述：</td>
                        <td class="style2" colspan="3"><%#Eval("Remark").ToString().Replace("\r\n","<br/>") %></td>
                    </tr>
                    <tr>
                        <td class="style1">操&nbsp;作&nbsp;人：</td>
                        <td class="style2"><%#Eval("UserName") %></td>
                         <td class="style3">操作时间：</td>
                        <td class="style4"><%#Eval("InputTime","{0:yyyy-MM-dd}") %><asp:HyperLink ID="lnkDelete" runat="server">删除</asp:HyperLink></td>
                    </tr>
                     <tr>
                        <td colspan="4">
                            <hr size="1" width="100%"  style="color:#e0e0e0" />
                        </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td class="empty">
                            没有进展
                        </td>
                    </tr>
                </EmptyDataTemplate>
                
            </asp:ListView>
        </table>
        <uc1:Pager ID="Pager1" runat="server" />
    </div>
</asp:Content>
